package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * 中签上市信息
 */
@ApiModel(description = "中签上市信息")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class ListedSharestockInfo   {
  @JsonProperty("customerId")
  private String customerId = null;

  @JsonProperty("customerName")
  private String customerName = null;

  @JsonProperty("securityName")
  private String securityName = null;

  @JsonProperty("securityCode")
  private String securityCode = null;

  @JsonProperty("listedDate")
  private String listedDate = null;

  @JsonProperty("winCount")
  private Integer winCount = null;

  @JsonProperty("amount")
  private Double amount = null;

  @JsonProperty("winDate")
  private String winDate = null;

  @JsonProperty("relationType")
  private String relationType = null;

  @JsonProperty("accountType")
  private String accountType = null;

  @JsonProperty("phone")
  private String phone = null;

  public ListedSharestockInfo customerId(String customerId) {
    this.customerId = customerId;
    return this;
  }

  /**
   * 客户号
   * @return customerId
  **/
  @ApiModelProperty(example = "2019-06-03T00:00:00.000+0000", value = "客户号")


  public String getCustomerId() {
    return customerId;
  }

  public void setCustomerId(String customerId) {
    this.customerId = customerId;
  }

  public ListedSharestockInfo customerName(String customerName) {
    this.customerName = customerName;
    return this;
  }

  /**
   * 客户姓名
   * @return customerName
  **/
  @ApiModelProperty(example = "张三", value = "客户姓名")


  public String getCustomerName() {
    return customerName;
  }

  public void setCustomerName(String customerName) {
    this.customerName = customerName;
  }

  public ListedSharestockInfo securityName(String securityName) {
    this.securityName = securityName;
    return this;
  }

  /**
   * 证券名称
   * @return securityName
  **/
  @ApiModelProperty(example = "12345623", value = "证券名称")


  public String getSecurityName() {
    return securityName;
  }

  public void setSecurityName(String securityName) {
    this.securityName = securityName;
  }

  public ListedSharestockInfo securityCode(String securityCode) {
    this.securityCode = securityCode;
    return this;
  }

  /**
   * 证券名称
   * @return securityCode
  **/
  @ApiModelProperty(example = "12345623", value = "证券名称")


  public String getSecurityCode() {
    return securityCode;
  }

  public void setSecurityCode(String securityCode) {
    this.securityCode = securityCode;
  }

  public ListedSharestockInfo listedDate(String listedDate) {
    this.listedDate = listedDate;
    return this;
  }

  /**
   * 上市日期
   * @return listedDate
  **/
  @ApiModelProperty(example = "2019-06-03T00:00:00.000+0000", value = "上市日期")


  public String getListedDate() {
    return listedDate;
  }

  public void setListedDate(String listedDate) {
    this.listedDate = listedDate;
  }

  public ListedSharestockInfo winCount(Integer winCount) {
    this.winCount = winCount;
    return this;
  }

  /**
   * 中签数量
   * @return winCount
  **/
  @ApiModelProperty(example = "1", value = "中签数量")


  public Integer getWinCount() {
    return winCount;
  }

  public void setWinCount(Integer winCount) {
    this.winCount = winCount;
  }

  public ListedSharestockInfo amount(Double amount) {
    this.amount = amount;
    return this;
  }

  /**
   * 成交金额
   * @return amount
  **/
  @ApiModelProperty(example = "1.0", value = "成交金额")


  public Double getAmount() {
    return amount;
  }

  public void setAmount(Double amount) {
    this.amount = amount;
  }

  public ListedSharestockInfo winDate(String winDate) {
    this.winDate = winDate;
    return this;
  }

  /**
   * 中签日期
   * @return winDate
  **/
  @ApiModelProperty(example = "2019-06-03T00:00:00.000+0000", value = "中签日期")


  public String getWinDate() {
    return winDate;
  }

  public void setWinDate(String winDate) {
    this.winDate = winDate;
  }

  public ListedSharestockInfo relationType(String relationType) {
    this.relationType = relationType;
    return this;
  }

  /**
   * 1-服务关系;2-签约关系;10-开发关系(默认开发关系)
   * @return relationType
  **/
  @ApiModelProperty(example = "10", value = "1-服务关系;2-签约关系;10-开发关系(默认开发关系)")


  public String getRelationType() {
    return relationType;
  }

  public void setRelationType(String relationType) {
    this.relationType = relationType;
  }

  public ListedSharestockInfo accountType(String accountType) {
    this.accountType = accountType;
    return this;
  }

  /**
   * 账户类型
   * @return accountType
  **/
  @ApiModelProperty(example = "1", value = "账户类型")


  public String getAccountType() {
    return accountType;
  }

  public void setAccountType(String accountType) {
    this.accountType = accountType;
  }

  public ListedSharestockInfo phone(String phone) {
    this.phone = phone;
    return this;
  }

  /**
   * 客户手机号码
   * @return phone
  **/
  @ApiModelProperty(example = "13739036666", value = "客户手机号码")


  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ListedSharestockInfo listedSharestockInfo = (ListedSharestockInfo) o;
    return Objects.equals(this.customerId, listedSharestockInfo.customerId) &&
        Objects.equals(this.customerName, listedSharestockInfo.customerName) &&
        Objects.equals(this.securityName, listedSharestockInfo.securityName) &&
        Objects.equals(this.securityCode, listedSharestockInfo.securityCode) &&
        Objects.equals(this.listedDate, listedSharestockInfo.listedDate) &&
        Objects.equals(this.winCount, listedSharestockInfo.winCount) &&
        Objects.equals(this.amount, listedSharestockInfo.amount) &&
        Objects.equals(this.winDate, listedSharestockInfo.winDate) &&
        Objects.equals(this.relationType, listedSharestockInfo.relationType) &&
        Objects.equals(this.accountType, listedSharestockInfo.accountType) &&
        Objects.equals(this.phone, listedSharestockInfo.phone);
  }

  @Override
  public int hashCode() {
    return Objects.hash(customerId, customerName, securityName, securityCode, listedDate, winCount, amount, winDate, relationType, accountType, phone);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ListedSharestockInfo {\n");
    
    sb.append("    customerId: ").append(toIndentedString(customerId)).append("\n");
    sb.append("    customerName: ").append(toIndentedString(customerName)).append("\n");
    sb.append("    securityName: ").append(toIndentedString(securityName)).append("\n");
    sb.append("    securityCode: ").append(toIndentedString(securityCode)).append("\n");
    sb.append("    listedDate: ").append(toIndentedString(listedDate)).append("\n");
    sb.append("    winCount: ").append(toIndentedString(winCount)).append("\n");
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
    sb.append("    winDate: ").append(toIndentedString(winDate)).append("\n");
    sb.append("    relationType: ").append(toIndentedString(relationType)).append("\n");
    sb.append("    accountType: ").append(toIndentedString(accountType)).append("\n");
    sb.append("    phone: ").append(toIndentedString(phone)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

